<template>
  <button class="button ellipsis" :class="[size, type]">
    <slot />
  </button>
</template>
<script>
export default {
  name: 'Tag',
  props: {
    size: {
      type: String,
      default: 'middle'
    },
    type: {
      type: String,
      default: 'primary'
    }
  }
}
</script>
<style scoped lang="less">
.button {
  appearance: none;
  border: none;
  outline: none;
  background: #fff;
  text-align: center;
  border: 1rpx solid transparent;
  border-radius: 4rpx;
  cursor: pointer;
}

.middle {
  width: 180rpx;
  height: 60rpx;
	line-height: 60rpx;
  font-size: 36rpx;
}

.default {
  border-color: #e4e4e4;
  color: #666;
}
.primary {
  border-color: #27BA9B;
  background: #27BA9B;
  color: #fff;
}
.plain {
  border-color: #27BA9B;
  color: #27BA9B;
  background: lighten(#27BA9B, 50%);
}
.gray {
  border-color: #ccc;
  background: #ccc;
  color: #fff;
}
</style>